package com.aaa.dem1027.第一遍.d01;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/10/27  14:26
 */
public class Test {
    public static void main(String[] args) throws ClassNotFoundException {

        Class peopleClass = People.class;
        People p = new People();
        Class aClass = p.getClass();
        Class aClass1 = Class.forName("com.aaa.dem1027.d10.People");
        System.out.println(peopleClass==aClass);
        System.out.println(peopleClass==aClass1);
        System.out.println(aClass==aClass1);
    }
}
class People {
    private String name;
    private Integer address;

    public void show(){
        System.out.println("show方法");
    }
}